package com.itheima.entry;

import com.itheima.factory.Factory;

import java.io.IOException;
import java.util.Scanner;

public class StudetEntry {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("========欢迎来到黑马信息管理系统！========");
            System.out.println("请输入您的选择：1.添加学生  2.删除学生  3.修改学生  4.查看学生");
            String choice = sc.next();
            switch (choice) {
                case "1":
                    Factory.getStudentController().addStudent();
                    break;
                case "2":
                    Factory.getStudentController().deleteStudent();
                    break;
                case "3":
                    Factory.getStudentController().updateStudent();
                    break;
                case "4":
                    Factory.getStudentController().findAllStudent();
                    break;

            }
        }
    }
}
